textlayout: make GtkTextLineDisplay reference counted
authorChristian Hergert <chergert@redhat.com>
Tue, 23 Jul 2019 21:52:14 +0000 (14:52 -0700)
committerChristian Hergert <chergert@redhat.com>
Tue, 23 Jul 2019 21:52:14 +0000 (14:52 -0700)
commite0b9b51e9f2f744c3ab517083579b567ac1d3fca
treef0dedad5fbb44be9d6cfa196685c5df8aadadb1e
parentfb06b7fa94ec7c1d4d0728b9850fb8d8fb803f4f
textlayout: make GtkTextLineDisplay reference counted

This makes GtkTextLineDisplay use GRcBox instead of g_slice_*
directly. By using reference counting for this structure, we
can ensure that we hold an extra ref for one_display_cache as
well as caching additional GtkTextLineDisplay for the visible
range in the future.
gtk/gtktextlayout.c
gtk/gtktextlayoutprivate.h